#include "brush.h"
Brush::Brush()
{
	Shine(0);
	SpecularColor(1.0f,1.0f,1.0f,1.0f);
	Color(0.5f,0.5f,0.5f,1.0f);
	Fx(0);
}
Brush::~Brush()
{
}
Brush::Brush(Brush &b)
{
	shine=b.shine;
	fx=b.fx;
	for(int i=0;i<4;i++)
	{
	specular[i]=b.specular[i];
	diffuse[i]=b.diffuse[i];
	}
}
void Brush::Bind()
{

}
void Brush::UnBind()
{

}

/*
	float sfactor;
	unsigned char shine;
	float diffuse[4];
	float specular[4];
	unsigned int blend;
	unsigned int fx;
*/
void Brush::Fx(unsigned int fx_)
{
	fx=fx_;
}
void Brush::Blend(unsigned int blend_)
{
	blend=blend_;
}
void Brush::Shine(unsigned char shine_)
{
	shine=shine_;
}
void Brush::Color(float r,float g,float b,float a=1.0f)
{
	diffuse[0]=r;
	diffuse[1]=g;
	diffuse[2]=b;
	diffuse[3]=a;
}
void Brush::SpecularColor(float r,float g,float b,float a=1.0f)
{
	specular[0]=r;
	specular[1]=g;
	specular[2]=b;
	specular[3]=a;
}